package com.itheima.reflect1;

public class Demo4 {

    public static void main(String[] args) throws Exception {

        //反射的应用：做框架的通用技术

        Teacher t = new Teacher("张三", 20);
        SaveObjectFrameWork.saveObject(t);
        Student s = new Student("李四", 15, "三年二班");
        SaveObjectFrameWork.saveObject(s);
        Dog d = new Dog("旺财", 5, "白色");
        SaveObjectFrameWork.saveObject(d);

    }
}
